/* Xiaolan Club Main Styles - Copyright: jxaolanshi.com 2025 */

.xiaolan-home-layout, .xiaolan-introduction-layout, .xiaolan-services-layout, .xiaolan-activity-layout, .xiaolan-apply-layout, .xiaolan-news-layout, .xiaolan-contact-layout {
    --xiaolan-primary-blue: #2563eb;
    --xiaolan-primary-cyan: #06b6d4;
    --xiaolan-primary-indigo: #4f46e5;
    --xiaolan-accent-purple: #7c3aed;
}

.xiaolan-bg-wrapper {
    background-attachment: fixed;
}

.xiaolan-wave-system {
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.1) 0%, transparent 50%);
    background-size: 160px 160px, 200px 200px, 100px 100px;
    animation: xiaolan-wave-drift 40s linear infinite;
}

@keyframes xiaolan-wave-drift {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(100px, 100px) rotate(360deg); }
}

.xiaolan-floating-elements::before,
.xiaolan-floating-elements::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.8), rgba(6, 182, 212, 0.8));
    border-radius: 50%;
    animation: xiaolan-element-float 30s infinite linear;
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.6), 0 0 60px rgba(6, 182, 212, 0.4);
}

.xiaolan-floating-elements::before {
    top: 25%;
    left: 15%;
    animation-delay: -10s;
}

.xiaolan-floating-elements::after {
    top: 75%;
    right: 20%;
    animation-delay: -20s;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.8), rgba(79, 70, 229, 0.8));
}

@keyframes xiaolan-element-float {
    0% {
        transform: translateY(120vh) translateX(-50px) rotate(0deg) scale(0);
        opacity: 0;
    }
    15% {
        opacity: 1;
        transform: translateY(100vh) translateX(0px) rotate(45deg) scale(1);
    }
    85% {
        opacity: 1;
        transform: translateY(-10vh) translateX(60px) rotate(315deg) scale(2);
    }
    100% {
        transform: translateY(-30vh) translateX(120px) rotate(360deg) scale(0);
        opacity: 0;
    }
}

.xiaolan-main-nav {
    backdrop-filter: blur(20px) saturate(180%);
}

.xiaolan-brand-link:hover .xiaolan-logo-main {
    animation: xiaolan-logo-spin 0.8s ease-in-out;
}

@keyframes xiaolan-logo-spin {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
}

.xiaolan-card-interactive {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.xiaolan-card-interactive:hover {
    transform: translateY(-12px) scale(1.04) rotateX(5deg);
    filter: brightness(1.2);
}

.xiaolan-card-interactive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.xiaolan-card-interactive:hover::before {
    opacity: 1;
}

.xiaolan-btn-primary,
.xiaolan-btn-secondary {
    position: relative;
    overflow: hidden;
}

.xiaolan-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.7s ease;
}

.xiaolan-btn-primary:hover::before {
    left: 100%;
}

.xiaolan-stat-number {
    animation: xiaolan-count-rise 3s ease-out;
}

@keyframes xiaolan-count-rise {
    0% { opacity: 0; transform: translateY(30px) scale(0.6); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.xiaolan-testimonial-card {
    transition: all 0.5s ease;
    backdrop-filter: blur(15px);
}

.xiaolan-testimonial-card:hover {
    transform: translateY(-8px) rotateX(3deg);
    box-shadow: 0 30px 60px rgba(37, 99, 235, 0.3);
}

#xiaolan-back-to-top {
    transform: translateY(150px) rotate(0deg);
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#xiaolan-back-to-top.xiaolan-show {
    transform: translateY(0) rotate(360deg);
    opacity: 1;
}

#xiaolan-back-to-top:hover {
    transform: translateY(-5px) rotate(720deg) scale(1.25);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.8);
}

.xiaolan-footer-divider {
    animation: xiaolan-divider-glow 5s ease-in-out infinite alternate;
}

@keyframes xiaolan-divider-glow {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.xiaolan-social-link:hover {
    transform: translateY(-4px) scale(1.2);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.6);
}

.xiaolan-footer-link:hover i {
    transform: scale(1.3) rotate(10deg);
    transition: transform 0.5s ease;
}

.xiaolan-main-footer {
    position: relative;
    overflow: hidden;
}

.xiaolan-main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #1e293b, #0f172a);
    border-radius: 7px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2563eb, #06b6d4);
    border-radius: 7px;
    border: 2px solid #0f172a;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #1d4ed8, #0891b2);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.7);
}

@media (max-width: 768px) {
    .xiaolan-floating-elements::before,
    .xiaolan-floating-elements::after {
        width: 4px;
        height: 4px;
    }
    
    .xiaolan-wave-system {
        background-size: 80px 80px, 100px 100px, 50px 50px;
    }

    .xiaolan-hero-title {
        font-size: 2.8rem;
        line-height: 1.1;
    }

    .xiaolan-card-wrapper {
        padding: 1.8rem;
    }
}

@media (max-width: 480px) {
    .xiaolan-hero-title {
        font-size: 2.2rem;
    }
    
    .xiaolan-stat-number {
        font-size: 1.8rem;
    }
}

@keyframes xiaolan-fade-in {
    0% { opacity: 0; transform: translateY(40px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.xiaolan-fade-in {
    animation: xiaolan-fade-in 1s ease-out forwards;
}

.xiaolan-glow {
    box-shadow: 
        0 0 30px rgba(37, 99, 235, 0.7),
        0 0 60px rgba(6, 182, 212, 0.5),
        inset 0 0 30px rgba(79, 70, 229, 0.2);
    animation: xiaolan-glow-pulse 3s ease-in-out infinite alternate;
}

@keyframes xiaolan-glow-pulse {
    0% {
        box-shadow: 
            0 0 30px rgba(37, 99, 235, 0.7),
            0 0 60px rgba(6, 182, 212, 0.5),
            inset 0 0 30px rgba(79, 70, 229, 0.2);
    }
    100% {
        box-shadow: 
            0 0 40px rgba(37, 99, 235, 0.9),
            0 0 80px rgba(6, 182, 212, 0.7),
            inset 0 0 40px rgba(79, 70, 229, 0.3);
    }
}

.xiaolan-text-glow {
    text-shadow: 
        0 0 15px rgba(37, 99, 235, 0.7),
        0 0 30px rgba(6, 182, 212, 0.5),
        0 0 45px rgba(79, 70, 229, 0.4);
    animation: xiaolan-text-pulse 4s ease-in-out infinite;
}

@keyframes xiaolan-text-pulse {
    0%, 100% {
        text-shadow: 
            0 0 15px rgba(37, 99, 235, 0.7),
            0 0 30px rgba(6, 182, 212, 0.5),
            0 0 45px rgba(79, 70, 229, 0.4);
    }
    50% {
        text-shadow: 
            0 0 25px rgba(37, 99, 235, 0.9),
            0 0 50px rgba(6, 182, 212, 0.7),
            0 0 75px rgba(79, 70, 229, 0.6);
    }
}

.xiaolan-smooth-transition {
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.xiaolan-smooth-transition:hover {
    transform: perspective(1500px) rotateX(15deg) rotateY(15deg) scale(1.1);
}

.xiaolan-3d-card {
    transform-style: preserve-3d;
    perspective: 1500px;
}

.xiaolan-3d-card:hover {
    transform: rotateY(20deg) rotateX(20deg) translateZ(40px);
}

.xiaolan-3d-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    transform: translateZ(-3px);
    filter: blur(25px);
    opacity: 0.8;
}